const state = {
  sideBar: {
    isOpen: true,
  },
};
const mutations = {
  CHANGE_SIDEBAR_STATE: ({ sideBar }) => {
    const sideBarCopy = sideBar;
    sideBarCopy.isOpen = !sideBar.isOpen;
  },
};

const actions = {
  changeSideBar({ commit }) {
    commit('CHANGE_SIDEBAR_STATE');
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
